package com.xiaomengkuan.common.exception;

import lombok.Getter;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-02-05 4:58 下午, File Encoding: utf8 --
 */
@Getter
public class LoginFailedException extends RuntimeException {
    private int code;
    private String message;

    public LoginFailedException() {
        this.code = 5000;
        this.message = "登陆失败，请检查用户名或密码";
    }

    public LoginFailedException(int i, String s) {
        this.code = i;
        this.message = s;
    }
}
